<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WELCOME TO FILE MANAGER!!!</title>
</head>
<body>
<%@ page import="file_functions.*, java.util.Vector, java.io.*" %>
<%
String str = new String(request.getParameter("dir").getBytes("ISO-8859-1"), "UTF8");
Manager man = new Manager(str);
session.setAttribute("ren_name", str.getBytes("UTF-8"));
Vector<Files_info> result = man.ls_command(true, false, 1, 0, 0);
%>
<%= man.get_name() %>
<br>
Choose file or directory to rename:

<TABLE cellspacing = "15">
<TR>
<TH>Name</TH>
<TH>Size</TH>
<TH>Last modify date</TH>
<TH></TH>
</TR>
<% for (int i = 0; i < result.size(); i++)
{ 
%>
<TR>
 <TD> <a href = "rename1,5.jsp?file=<%= result.get(i).name %>"><%= result.get(i).name %></a></TD>
 <TD> <%= result.get(i).size %></TD>
 <TD> <%= result.get(i).date %></TD>
</TR>
<% } %>
</TABLE>
<br>
<a href = "main.jsp">back to manager</a>
</body>
</html>